<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
		var t;
			function time(){
				 showtime();
				t=setInterval("showtime()",1000);
			}
			function showtime(){
				var d=new Date();
				document.getElementById("cc").innerHTML=d.toLocaleString();
			}
			function stopTime(){
				clearInterval(t);
			}
			
			function raddy(){
				time();
			}
		</script>
	</head>
	<body onload="time()">
		<div id="cc">
		</div>
		<div>
			<input type="button" onclick="stopTime()" value="停止" />
			<input type="button" onclick="raddy()" value="开始" />
		</div>
	</body>
</html>
